﻿<%@ Page Title="Nyheter" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Nyheter
</asp:Content>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link rel="Alternate" title="Siste nytt (RSS)" href="<%= Url.Action("feed", new { format = "rss" }) %>" type="application/rss+xml" />
    <link rel="Alternate" title="Siste nytt (Atom 1.0)" href="<%= Url.Action("feed", new { format = "atom" }) %>" type="application/atom+xml" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% Html.PartialRequest(new { Controller = "Announcement", Action = "List" }); %>

</asp:Content>

<asp:Content ContentPlaceHolderID="LeftSideContent" runat="server">
    <ul>
        <% if (Page.User.IsInRole("Contributor")) { %>
        <li class="first">
            <%= Html.ActionLink("Opprett ny artikkel", "Create") %>
        </li>
        <% } %>
    </ul>
</asp:Content>
